package com.smile.annotation;

import com.smile.config.*;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.FeignClientsConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@org.springframework.cloud.openfeign.EnableFeignClients(
        defaultConfiguration = {
                FeignClientsConfiguration.class,
                FooConfiguration.class,
                FeignConfig.class,
                FeignMultipartSupportConfig.class,
                JacksonDateTimeConfig.class
//                BlockingLoadBalancerClientConfig.class,
        }
)
@Import(LoadBalancedConfig.class)
@LoadBalancerClients(defaultConfiguration = {MyConfig.class})
public @interface EnableFeignClients {
}
